package com.dog.account.service.impl;

import com.dog.account.service.AccountService;
import com.dog.account.tcc.AccountTccAction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @author 郭鲁政
 */
@Service
public class AccountServiceImpl implements AccountService {
    @Autowired
    private AccountTccAction accountTccAction;
    @Override
    public void decrease(Long userId, BigDecimal money) {
accountTccAction.prepare(null, userId, money);
    }
}
